﻿using Dos.ORM;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Finance.Poco
{
    /// <summary>
    /// 实体类ViewAccounts 。(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class ViewAccounts : Entity
    {
        public ViewAccounts() : base("v_accounts") { }

        #region Model
        private long _Id;
        private int? _TypeId;
        private string _CreateUserName;
        private decimal _Amount;
        private DateTime? _CreateTime;
        private string _Remarks;
        private int _OrgId;
        private int _BankCardId;
        private string _Email;
        private string _TypeName;
        private int _Isout;
        private string _CardNo;
        private string _BankName;
        /// <summary>
        /// 
        /// </summary>
        public long Id
        {
            get { return _Id; }
            set
            {
                this.OnPropertyValueChange(_.Id, _Id, value);
                this._Id = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? TypeId
        {
            get { return _TypeId; }
            set
            {
                this.OnPropertyValueChange(_.TypeId, _TypeId, value);
                this._TypeId = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string CreateUserName
        {
            get { return _CreateUserName; }
            set
            {
                this.OnPropertyValueChange(_.CreateUserName, _CreateUserName, value);
                this._CreateUserName = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal Amount
        {
            get { return _Amount; }
            set
            {
                this.OnPropertyValueChange(_.Amount, _Amount, value);
                this._Amount = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? CreateTime
        {
            get { return _CreateTime; }
            set
            {
                this.OnPropertyValueChange(_.CreateTime, _CreateTime, value);
                this._CreateTime = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Remarks
        {
            get { return _Remarks; }
            set
            {
                this.OnPropertyValueChange(_.Remarks, _Remarks, value);
                this._Remarks = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public int OrgId
        {
            get { return _OrgId; }
            set
            {
                this.OnPropertyValueChange(_.OrgId, _OrgId, value);
                this._OrgId = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public int BankCardId
        {
            get { return _BankCardId; }
            set
            {
                this.OnPropertyValueChange(_.BankCardId, _BankCardId, value);
                this._BankCardId = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Email
        {
            get { return _Email; }
            set
            {
                this.OnPropertyValueChange(_.Email, _Email, value);
                this._Email = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string TypeName
        {
            get { return _TypeName; }
            set
            {
                this.OnPropertyValueChange(_.TypeName, _TypeName, value);
                this._TypeName = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public int IsOut
        {
            get { return _Isout; }
            set
            {
                this.OnPropertyValueChange(_.Isout, _Isout, value);
                this._Isout = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string CardNo
        {
            get { return _CardNo; }
            set
            {
                this.OnPropertyValueChange(_.CardNo, _CardNo, value);
                this._CardNo = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string BankName
        {
            get { return _BankName; }
            set
            {
                this.OnPropertyValueChange(_.BankName, _BankName, value);
                this._BankName = value;
            }
        }
        #endregion

        #region Method
        /// <summary>
        /// 是否只读
        /// </summary>
        public override bool IsReadOnly()
        {
            return true;
        }
        /// <summary>
        /// 获取列信息
        /// </summary>
        public override Field[] GetFields()
        {
            return new Field[] {
				_.Id,
				_.TypeId,
				_.CreateUserName,
				_.Amount,
				_.CreateTime,
				_.Remarks,
				_.OrgId,
				_.BankCardId,
				_.Email,
				_.TypeName,
				_.Isout,
				_.CardNo,
				_.BankName};
        }
        /// <summary>
        /// 获取值信息
        /// </summary>
        public override object[] GetValues()
        {
            return new object[] {
				this._Id,
				this._TypeId,
				this._CreateUserName,
				this._Amount,
				this._CreateTime,
				this._Remarks,
				this._OrgId,
				this._BankCardId,
				this._Email,
				this._TypeName,
				this._Isout,
				this._CardNo,
				this._BankName};
        }
        #endregion

        #region _Field
        /// <summary>
        /// 字段信息
        /// </summary>
        public class _
        {
            /// <summary>
            /// * 
            /// </summary>
            public readonly static Field All = new Field("*", "v_accounts");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field Id = new Field("Id", "v_accounts", "Id");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field TypeId = new Field("typeId", "v_accounts", "typeId");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field CreateUserName = new Field("createUserName", "v_accounts", "createUserName");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field Amount = new Field("amount", "v_accounts", "amount");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field CreateTime = new Field("createTime", "v_accounts", "createTime");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field Remarks = new Field("remarks", "v_accounts", "remarks");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field OrgId = new Field("orgId", "v_accounts", "orgId");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field BankCardId = new Field("bankCardId", "v_accounts", "bankCardId");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field Email = new Field("email", "v_accounts", "email");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field TypeName = new Field("typeName", "v_accounts", "typeName");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field Isout = new Field("isout", "v_accounts", "isout");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field CardNo = new Field("cardNo", "v_accounts", "cardNo");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field BankName = new Field("bankName", "v_accounts", "bankName");
        }
        #endregion


    }

}
